package main

import (
	"fmt"
	"image/color"
	"math/rand"
	"time"
)

func main() {
	var palette = []color.Color{color.White, color.RGBA{0x00, 0xff, 0x00, 0xff}, color.RGBA{0x00, 0xcc, 0x00, 0xff}, color.RGBA{0x00, 0xff, 0xdd, 0xff}}
	fmt.Println(getRandomInt(5))
	fmt.Println(len(palette))

}
func getRandomInt(max int) (randInt uint8) {
	r := rand.New(rand.NewSource(time.Now().UnixNano()))
	randInt = uint8(r.Intn(max))
	time.Sleep(1)
	return randInt
}
